home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000265_news@columbia.edu _Mon Jul 12 16:20:28 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA09643
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 12 Jul 1999 16:20:28 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA00354
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 12 Jul 1999 15:58:59 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: "quertyq@hotmail.com" <quertyq@hotmail.com>
  10. Subject: Incrementing a value stored as a macro
  11. Date: Mon, 12 Jul 1999 17:35:47 GMT
  12. Organization: Deja.com - Share what you know. Learn what you don't.
  13. Message-ID: <7md91i$p30$1@nnrp1.deja.com>
  14. To: kermit.misc@columbia.edu
  15.  
  16. Good Afternoon:
  17.  
  18. I am using Kermit 95 Version 1.l.17.
  19.  
  20. How can I have a value currently assigned as a macro, to be
  21. treated as an integer, and have it incremented?
  22.  
  23. Let me explain ...
  24. I am using Figure 18-2 Mass mailing script as the example
  25. ( pg 412 in the 2nd edition C-Kermit manual ):
  26.  
  27.   def SPLIT {
  28.     asg name \%1
  29.     asg user \%2
  30.   }
  31.  
  32. My code snippet is as follows:
  33.  
  34.   define valu 7
  35.   echo ** valu = \m(valu)
  36.  
  37.   increment \m(valu)
  38.   echo ** valu = \m(valu)
  39.  
  40. The result is:
  41.   ** value = 7
  42.   ** value = 7
  43.  
  44. The "increment" command does not increase the value of "\m(valu)".
  45. How can I increment a value stored in a macro?  _or_
  46. How can I convert the value within the macro to an integer variable?
  47.  
  48. Thanks,
  49.  
  50. Matt
  51.  
  52.  
  53. Sent via Deja.com http://www.deja.com/
  54. Share what you know. Learn what you don't.